<?php

	/**
	 * FieldException
	 *
	 * @package      Core
	 *
	 */
	class Core_FieldException extends Exception
        {
            protected $_field;

            /**
             * Overrides the constructor
             *
             * @param       string  $field
             * @param       string  $message
             * @return      void
             */
            public function __construct($field, $message)
            {
                // Sets $this->message the proper way
                parent::__construct($message);

                $this->_field   = $field;
            }

            /**
             * Returns the field concerned
             *
             * @return      string
             */
            public function getField()
            {
                return $this->_field;
            }
        }
